package com.zg.scf.domain.req.img;

import com.zg.common.core.req.AddReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * DESCRIPTION
 *
 * @author zhanfeng.liang
 * @since 2025-07-25
 */

@Data
@ApiModel(value = "画像分类AddReq")
public class ImgCategoryAddReq extends AddReq {

    @ApiModelProperty(value = "分类名称")
    @NotEmpty(message = "分类名称不能为空")
    private String title;

    @ApiModelProperty(value = "分类父Id")
    @NotNull(message = "分类父Id不能为空")
    private Long pid;

    @ApiModelProperty(value = "分类状态")
    @NotEmpty(message = "分类状态不能为空")
    private String state;

    @ApiModelProperty(value = "排序")
    //@NotNull(message = "排序不能为空")
    private Integer sort;

    @ApiModelProperty(value = "最大值")
    @NotNull(message = "最大值不能为空")
    private BigDecimal max;
}
